﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Home.Master" Inherits="System.Web.Mvc.ViewPage<List<kysec.BLL.Production.DemoDetail>>" MetaKeywords="产品演示-上海众承精密机床有限公司 " MetaDescription="上海众承精密机床有限公司,产品演示" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	产品演示-上海众承精密机床有限公司
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

        <link href="../../Content/pre/css/global.css" rel="stylesheet" type="text/css" />
    <script src="../../Content/pre/js/slides.min.jquery.js" type="text/javascript"></script>
  <script type="text/javascript">
      $(function () {
          $('#products').slides({
              preload: true,
              preloadImage: '<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/loading.gif") %>',
              effect: 'slide, fade',
              crossfade: true,
              slideSpeed: 200,
              fadeSpeed: 500,
              generateNextPrev: true,
              generatePagination: false
          });
      });
</script>
<div class="ad_show">
<div class="ad_picture"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/p_03.gif") %>" width="980px" height="100" title="产品演示" /><div id="ditu"><img src="<%=Url.Content(kysec.CR.MyUrl.WebData.WEBURL + "/Content/pre/images/position.gif") %>" width="8" height="22" /><span>当前位置：<a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/preIndex/Home">首页</a> >> <a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/Product/Product_Demo">样品演示</a></span></div></div>
</div>
  <div class="main">
    <div id="main_top">
		  <div id="main_top_left">
          			<div class="cp_op">演示样品</div>
          <ul class="cp_op_ul">
         <%if (ViewData["Products"] != null)
                        {
                            foreach (var item in (System.Collections.Generic.IEnumerable<kysec.BLL.Production.DemoData>)ViewData["Products"])
                            { %>
		<li><a  href="/Product/Demo?id=<%=kysec.CR.Common.EncodeByBase64.Encode((item.pid).ToString()) %>"><%string title = item.title.Length > 5 ? item.title.Substring(0, 5) : item.title; %><%=title %>...</a></li>
        <%} 
           }%>
</ul></div>
		  <div id="main_right">              
          <div id="container">
		<div id="products_example">
			<div id="products">
				<div class="slides_container">
                <%if (Model != null)
                  {
                      string str = string.Empty;
                      foreach (var item in Model)
                      {
                          var xe = item.imgPath.Elements("item").ToList();

                          for (int i = 0; i < item.imgPath.Elements("item").Attributes("url").ToList().Count; i++)
                          { %>
					<a href="javascript:;"><img src="<%=kysec.CR.MyUrl.WebData.WEBURL + xe[i].Attribute("url").Value %>" width="366" height="274px" alt="样品演示"/></a><%}
                      } %>				
				</div>
				<ul class="pagination">
                <%foreach (var item in Model)
                  {
                      var xe = item.imgPath.Elements("item").ToList();

                      for (int i = 0; i < item.imgPath.Elements("item").Attributes("url").ToList().Count; i++)
                      { %>
					<li><a href="javascript:;"><img src="<%=kysec.CR.MyUrl.WebData.WEBURL + xe[i].Attribute("url").Value %>" width="55" height="41px" alt="样品演示"/></a></li>
                    <%}
                  }
                  }%>
				</ul>
			</div>
		</div>
	</div>

            <div class="clear"></div>
                    <div style=" border-top:solid 1px #fafafa; line-height:25px; text-align:center;"><a href="<%=kysec.CR.MyUrl.WebData.WEBURL %>/Product/Product_Demo">【返回】</a></div>
        </div>
    </div>
  </div>

</asp:Content>

